how to subtract 48 hours from datetime filed in python without using pandas

30

how to subtract 48 hours from datetime filed in python without using pandas -

from datetime import datetime, timedelta

d = datetime.today() - timedelta(hours=0, minutes=50)

d.strftime('%H:%M %p')

Comments

Submit
0 Comments